package com.zmj.sy.mom.srv.aps.bean.entity.order;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseEntity;
import com.zmj.sy.mom.srv.aps.utils.Comment;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Comment("导入-ERP-订单")
@Getter
@Setter
@TableName("tb_import_erp_order")
public class ImportErpOrder extends BaseEntity {

    @Comment("工厂")
    private String factory;

    @Comment("总成图号")
    private String paintCode;

    @Comment("工艺主管")
    private String gongyi;

    @Comment("生产下发时间")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime assignDate;

    @Comment("技术主管")
    private String jishu;

    @Comment("总成物料编码")
    private String materialCode;

    @Comment("优先级")
    private String priority;

    @Comment("交货期")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private LocalDateTime deliTime;

    @Comment("施工号状态 N-使用 T-封存 Y-清理")
    private String orderState;

    @Comment("总成物料名称")
    private String materialName;

    @Comment("合同单重")
    private String contractNetWeight;

    @Comment("订单数量")
    private String qty;

    @Comment("生产方式 0-自制；1-外协")
    private String modOfProd;

    @Comment("客户")
    private String client;

    @Comment("施工号")
    private String orderCode;

    @Comment("架型（规格）")
    private String model;

    @Comment("合同号")
    private String contractCode;

}
